assume	cs:code

public	dispx

code	segment

;
;==========================================================================
;                               Procedures
;=========================================================================={{

;--------------------------------------------------------------------------
; Display decimal contents of AX (up to 65535)
;--------------------------------------------------------------------------{{{	
dispx	proc	far
	push	dx
	push 	cx
	push 	bx
	push	ax
	mov	cx,0
	mov	bx,10d
dispx1:
	mov	dx,0
	div	bx
	push	dx
	inc	cx
	or	ax,ax
	jnz	dispx1
dispx2:
	pop	dx
	mov	ah,6
	add	dl,30h
	int	21h
	loop	dispx2
	
	pop	ax
	pop	bx
	pop	cx
	pop	dx
	
	ret
	
dispx	endp
;}}}	
	
	
	
code	ends
end
